<?php

namespace App\Model\DesignPattern\Creational\Behavioral\Visitor;

use Illuminate\Database\Eloquent\Model;

class Jump implements AnimalOperation
{
    public function visitMonkey(Monkey $monkey)
    {
        echo 'Jumped 20 feet high! on to the tree!';
    }
    public function visitLion(Lion $lion)
    {
        echo $lion->roar().'<br/>';
        echo $lion->accept(new Speak()).'<br/>';
        echo 'Jumped 7 feet! Back on the ground!';
    }
}
